// Analysis 基类
import { ITooltip } from '@/utils/tooltips/ITooltip';

export interface AnalysisContext {
  viewer: any;
  tooltip?: ITooltip;
}

export abstract class BaseAnalysis {
  protected viewer: any;
  protected tooltip?: ITooltip;

  constructor(ctx: AnalysisContext) {
    this.viewer = ctx.viewer;
    this.tooltip = ctx.tooltip;
  }

  abstract activate(): void;
  abstract clear(): void;
}
